﻿
Public MustInherit Class nocontentProcessor
    Inherits requestProcessor

    Public Shared Function process2(ByVal context As httpContext) As Boolean
        assert(Not context Is Nothing)
        Return context.setstatuscode(Net.HttpStatusCode.NoContent, "NO_CONTENT")
    End Function

    Protected Overridable Function processImpl(ByVal context As httpContext) As Boolean
        Return True
    End Function

    Public NotOverridable Overrides Function process(ByVal context As httpContext) As Boolean
        Return processImpl(context) AndAlso process2(context)
    End Function
End Class

Public Class pingProcessor
    Inherits nocontentProcessor

    Public Overrides Function pathidentity() As String
        Return FDInternalRequest.ping
    End Function
End Class